
local jiaguo = fk.CreateSkill {
  name = "lingling__jiaguo",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["lingling__jiaguo"] = "家国",
  [":lingling__jiaguo"] = "锁定技，你与其距离为1以内的角色手牌上限+1。",
}

jiaguo:addEffect("maxcards", {
  correct_func = function (self, player)
    return #table.filter(Fk:currentRoom().alive_players, function (p)
      return p:hasSkill(jiaguo.name) and player:compareDistance(p, 1, "<=")
    end)
  end,
})

return jiaguo
